package com.assignwork.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassName ShiftRuleSubmitDTO
 * @Description 班组规则DTO
 * @Author dujianyu
 * @Date 2023/12/4 8:53
 */
@Data
public class ShiftRuleSubmitDTO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "几班倒")
    private Integer shifts;

    @ApiModelProperty(value = "几个时间段")
    private Integer times;

    @ApiModelProperty(value = "是否启用")
    private Integer status;

    @ApiModelProperty(value = "班组信息")
    private List<ShiftRuleDailyShiftSubmitDTO> dailyShifts;

    @ApiModelProperty(value = "时间段信息")
    private List<ShiftRuleTimeSpaceSubmitDTO> timeSpaces;


}
